package com.example.admin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangkai
 * @since 2019-06-04
 */
@TableName("tbl_sys_department")
public class SysDepartment extends Model<SysDepartment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * ä¸Šçº§éƒ¨é—¨ID
     */
    @TableField("PARENT_ID")
    private Integer parentId;

    /**
     * çˆ¶ç±»IDé›†åˆ
     */
    @TableField("PIDS")
    private String pids;

    /**
     * åç§°
     */
    @TableField("NAME")
    private String name;

    /**
     * éƒ¨é—¨æè¿°
     */
    @TableField("REMARK")
    private String remark;

    /**
     * è”ç³»äºº
     */
    @TableField("RESERVE_FIELD1")
    private String reserveField1;

    /**
     * è”ç³»ç”µè¯
     */
    @TableField("RESERVE_FIELD2")
    private String reserveField2;

    @TableField("RESERVE_FIELD3")
    private String reserveField3;

    @TableField("RESERVE_FIELD4")
    private String reserveField4;

    @TableField("RESERVE_FIELD5")
    private String reserveField5;

    @TableField("RESERVE_FIELD6")
    private String reserveField6;

    @TableField("RESERVE_FIELD7")
    private String reserveField7;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public String getPids() {
        return pids;
    }

    public void setPids(String pids) {
        this.pids = pids;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
    public String getReserveField1() {
        return reserveField1;
    }

    public void setReserveField1(String reserveField1) {
        this.reserveField1 = reserveField1;
    }
    public String getReserveField2() {
        return reserveField2;
    }

    public void setReserveField2(String reserveField2) {
        this.reserveField2 = reserveField2;
    }
    public String getReserveField3() {
        return reserveField3;
    }

    public void setReserveField3(String reserveField3) {
        this.reserveField3 = reserveField3;
    }
    public String getReserveField4() {
        return reserveField4;
    }

    public void setReserveField4(String reserveField4) {
        this.reserveField4 = reserveField4;
    }
    public String getReserveField5() {
        return reserveField5;
    }

    public void setReserveField5(String reserveField5) {
        this.reserveField5 = reserveField5;
    }
    public String getReserveField6() {
        return reserveField6;
    }

    public void setReserveField6(String reserveField6) {
        this.reserveField6 = reserveField6;
    }
    public String getReserveField7() {
        return reserveField7;
    }

    public void setReserveField7(String reserveField7) {
        this.reserveField7 = reserveField7;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysDepartment{" +
        "id=" + id +
        ", parentId=" + parentId +
        ", pids=" + pids +
        ", name=" + name +
        ", remark=" + remark +
        ", reserveField1=" + reserveField1 +
        ", reserveField2=" + reserveField2 +
        ", reserveField3=" + reserveField3 +
        ", reserveField4=" + reserveField4 +
        ", reserveField5=" + reserveField5 +
        ", reserveField6=" + reserveField6 +
        ", reserveField7=" + reserveField7 +
        "}";
    }
}
